<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta name="copyright" content="www.apicloud.com" />
  <meta name="viewport"
    content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  <meta name="format-detection" content="telephone=no,email=no,date=no,address=no" />
  <title>我的</title>
  <link rel="stylesheet" type="text/css" href="../../css/api.css" />
  <style>
    #main {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-flex-flow: column;
      flex-flow: column;
    }

    #header {
      position: relative;
      background-color: #1abc9c;
      border-bottom: 1px solid #e0e0e0;
    }

    .logo {
      position: absolute;
      left: 20px;
      bottom: 13px;
      height: 25px;
    }

    h1 {
      height: 50px;
      line-height: 50px;
      font-size: 20px;
      color: #fff;
      font-weight: normal;
      margin: 0 auto;
      text-align: center;
    }
  </style>
</head>

<body>
  <div id="main">
    <header id="header">
      <img class="logo" src="../../image/ic_back_u.png" tapmode onclick="api.closeWin()" />
      <h1 id="title">修改考勤</h1>
    </header>
  </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
  apiready = function () {
    var $header = $api.dom("header");
    $api.fixIos7Bar($header);
    $api.fixStatusBar($header);
    var thridHeader = $api.offset(header);
    var id = api.pageParam.id;
    api.openFrame({
      name: "attr_add_frame.html",
      url: "attr_add_frame.html",
      rect: {
        x: 0,
        y: thridHeader.h,
        w: "auto",
        h: "auto",
      },
      pageParam: {
        id: id,
      }, //传递参数
      bounces: true,
      delay: 200,
    });
  };
</script>

</html>